Error while including word.dxl file

Hi !

I tried including the word dxl file, but it generate an error, can you help me (in fact i am new to this forum and to dxl) ?

Here is my code:

string file
file = "/DB/System/Specification File"
Module Mod 
Mod = read(file, false)
result = open(module file)
 
{
#include <standard/export/office/word.dxl> // <-- this line bugs !!
}

 


I keep it minimal to focus on the problem.

Runnig this code generate an EXCEPTION_ACCESS_VIOLATION, with this message:
Backtrace:
<standard/export/office/word.dxl:2970>
-R-F- DXL: <utils/doctools/itfui2.inc:140> internal error, please submit a bug report
Backtrace:
<standard/export/office/word.dxl:2970>
It appears the error is in itfui2.inc file !! at the line:

 

 

exportBox = create(m,dbTitle, styleFixed_ | styleCentered_)



Do you have any clue ??

Thanks,

Bat

DOORS Version 8.1.0.0 - Windows 7



 


bogosse - Thu Jan 26 08:52:38 EST 2012

Re: Error while including word.dxl file
rain_bow - Thu Jan 26 12:53:21 EST 2012

Try without the open and close brackets.

Re: Error while including word.dxl file
Mathias Mamsch - Fri Jan 27 11:48:13 EST 2012

The open & close braces should not play a role. You probably need to open your module visible? Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Error while including word.dxl file
llandale - Sat Jan 28 12:47:09 EST 2012

Maybe "current = Mod" before the include?

Re: Error while including word.dxl file
bogosse - Mon Jan 30 11:36:40 EST 2012

Thank you for your answers.

There is no more problem if i open the file manually i.e. not in script (isVisible answers true, and my file is really open), otherwise the EXCEPTION_ACCESS_VIOLATION error is generated.

So i wonder is there a super open function, because the simple open function answers true but the document is not visible !! (which i thnik provok the error).

Bye,

Bat

Re: Error while including word.dxl file
Mathias Mamsch - Tue Jan 31 04:52:46 EST 2012

bogosse - Mon Jan 30 11:36:40 EST 2012
Thank you for your answers.

There is no more problem if i open the file manually i.e. not in script (isVisible answers true, and my file is really open), otherwise the EXCEPTION_ACCESS_VIOLATION error is generated.

So i wonder is there a super open function, because the simple open function answers true but the document is not visible !! (which i thnik provok the error).

Bye,

Bat

Did you actually try:
 

string file
file = "/DB/System/Specification File"
Module Mod 
Mod = read(file, true) // <- USE TRUE HERE TO OPEN VISIBLY!
result = open(module file)
 
{
#include <standard/export/office/word.dxl> // <-- this line bugs !!
}

 


Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

Re: Error while including word.dxl file
bogosse - Tue Jan 31 05:58:51 EST 2012

Sorry, as i said, i am new to dxl... your solution is perfect... It works very well.

Thank you so much !

Bat